package com.hz.web.service.impl;

import com.hz.web.dao.SheetMapper;
import com.hz.web.entity.Sheet;
import com.hz.web.service.SheetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by kaddddd on 2018/5/11 0011.
 */
@Service
public class SheetServiceImpl implements SheetService {
    @Autowired
    SheetMapper sheetMapper;

    public List<Sheet> getSheetList(int status){
        List<Sheet> list = new ArrayList();
        list = sheetMapper.getSheetList(status);
        return list;
    }

    public Sheet sheetDetail(int id){
        Sheet sheet = sheetMapper.sheetDetail(id);
        return sheet;
    }
}
